package com.appkubes.mall.admin.application.supplier.shop.controller;

import com.appkubes.cloud.config.params.paramValid.ParamValid;
import com.appkubes.common.Response;
import com.appkubes.mall.admin.application.supplier.supplier.entity.vo.SupplierKeyVO;
import com.appkubes.mall.core.controller.BaseMallSupplierShopController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "供应商店铺模块")
@RestController
@RequestMapping("/supplier/shop")
public class SupplierShopController extends BaseMallSupplierShopController {

    @ApiOperation("店铺信息")
    @GetMapping("shopInfo")
    public Response shopInfo(@ParamValid SupplierKeyVO supplierKeyVO){
        return Response.success(this.getById(supplierKeyVO.getSupplierKey()));
    }
}
